<template>
  <div class="home">
    <el-button @click="open">
      点击
    </el-button>
    首页1111
    <MyEditor v-if="isShow" @changeValue="comChange('test_result', $event)" v-model:value="edValue"></MyEditor>
    
  </div>
</template>

<script setup>
import {ref} from 'vue'
import MyEditor from '@/components/editor.vue';
const test_result_dom = ref()
const comChange = (type,value)=>{
console.log(type,value);
edValue.value = value
}
const isShow = ref(true)
const edValue = ref('你好，富文本')

const open = ()=>{
  isShow.value = !isShow.value
  console.log(edValue.value);
}
</script>
